import DictionaryConstants from "@/const/DictionaryConstants.ts";
import instance from "@/api/request.ts";
import { HeaderData } from "@/model/AxiosModel.ts";

const ApiConst = DictionaryConstants.ApiConst;

/**
 * 查询所有分类
 */
export function getAllCategory(headerData?: HeaderData) {
    // headerData=Tools.setHeaderData(headerData);
    return instance.get(`${ApiConst.PRODUCT}/category/getAllCategory`, {
        headers: {
            IS_ADD_HEADER: true,
            IS_SHOW_MESSAGE: false,
            IS_ADD_TOKEN: true,
        },
    });
}